package com.guigu.www.controller;


import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.guigu.www.pojo.Jkzx;
import com.guigu.www.service.JkzxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import org.springframework.stereotype.Controller;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yb
 * @since 2021-06-25
 */
@RestController
@CrossOrigin
public class JkzxController {

    @Autowired
    private JkzxService service;


    @PostMapping("queryAlljkzx")
    public List<Jkzx> queryAlljkzx(){
        return service.selectList(new EntityWrapper<Jkzx>());
    }
    
    @PostMapping("queryByIdjkzx")
    public Jkzx queryByIdjkzx(@RequestBody Jkzx jkzx){
        return service.selectById(jkzx.getId());
    }
}

